﻿<%@ Page Language="C#" MasterPageFile="~/Users/Users.Master" AutoEventWireup="true" CodeBehind="VolunteeringOpportunityDetails.aspx.cs" Inherits="Pantry.Web.Users.VolunteeringOpportunityDetails" Title="Untitled Page" %>
<%@ Register TagPrefix="uc1" TagName="ListContact" Src="~/Users/Controls/ListContact.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    	function validate() {
    		if (document.getElementById("<%=TextBoxVolunteeringContact.ClientID%>").value == "") {
    			showmessage('Please input Voluteering Contact !', 'ERROR', '', 'false');
    			document.getElementById("<%=TextBoxVolunteeringContact.ClientID%>").focus();
    			return false;
    		}
    		if (document.getElementById("<%=TextBoxVoluteerNos.ClientID%>").value!="")
    		{
    			var phone = /^[-+]?([0-9]+)$/;
    			var phoneid=document.getElementById("<%=TextBoxVoluteerNos.ClientID %>").value;
    			var matchArray = phoneid.match(phone);
    			if (matchArray == null)
    			{
    				showmessage('Must be a integer here !','ERROR','','false');
    				document.getElementById("<%=TextBoxVoluteerNos.ClientID %>").focus();
    				return false;
    			}
    		}
    		return true;
    	}
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="g_12_tienvn" id="table_wTabs">
        <div class="widget_header wwOptions" id="table_wTabs">
            <h4 class="widget_header_title wwIcon i_16_tables">
                Volunteering Opportunity Details
            </h4>
            <div class="top-nav">
                <asp:Button runat="server" ID="ButtonMarkInActive" Text="In-Active" OnClick="MarkVoluteersInActive"
                            CssClass="buttontop" OnClientClick="return confirm('Do you want to make this service is in-active?');" />
                <asp:Button ID="ButtonSave" runat="server" Text="Save" CssClass="buttontop" OnClick="SaveServiceClick"
                            OnClientClick="return validate();" />
                <asp:Button ID="ButtonBack" runat="server" Text="Back" CssClass="buttontop" OnClick="ButtonBackClick" />
            </div>
        </div>
        <div style="clear: both;"></div>
        <div class="widget_contents">
            <asp:UpdatePanel runat="server" ID="UpdatePanelVolunteeringOpportunityDetails">
                <ContentTemplate>
                    <script src="Resources/js/DataTables/jquery.dataTables.min.js" type="text/javascript"></script>
                        <script type="text/javascript" language="javascript">
                            Sys.Application.add_load(doSprin);
                        </script>
                    <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
                        <div class="Duongnt8WidgetContent">
                            <div class="g_6_tienvn">
                                <ul class="title_ul">
                                    <li>Volunteering Contact <span style="color: Red">*</span></li>
                                    <li>Volunteer Porpose</li>
                                    <li>Volunteering Opportunity Details</li>
                                    <li>Start Date</li>
                                    <li>End Date</li>
                                    <li>Voluteer Nos</li>
                                </ul>
                                <ul class="control_ul">
                                    <li>
                                        <asp:TextBox runat="server" ID="TextBoxVolunteeringContact" CssClass="small_text" Enabled="False" />
                                        <asp:HiddenField runat="server" ID="HiddenFieldContactId"/>
                                        <asp:Button runat="server" Text="Lookup" CssClass="buttonlookup lookupcontact"/>
                                    </li>
                                    <li>
                                        <asp:TextBox runat="server" ID="TextBoxVolunteerPorpose" TextMode="MultiLine" />
                                    </li>
                                    <li>
                                        <asp:TextBox runat="server" ID="TextBoxVolunteeringDetails" TextMode="MultiLine" />
                                    </li>
                                    <li>
                                        <asp:TextBox runat="server" ID="TextBoxStartDate" placeholder="mm/dd/yyyy" CssClass="pick_date" AutoPostBack="true" />
                                    </li>
                                    <li>
                                        <asp:TextBox ID="TextBoxEndDate" runat="server" placeholder="mm/dd/yyyy" CssClass="pick_date" AutoPostBack="true" />
                                    </li>
                                    <li>
                                        <asp:TextBox ID="TextBoxVoluteerNos" runat="server" />
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div style="clear: both;"></div>
        </div>
    </div>
    <%-- pupop --%>
    <div class="dialog DialogListContact" style="display: none" title="List Contact">
        <uc1:ListContact runat="server" ID="ListContact" />
    </div>
</asp:Content>
